package com.zsc.newbuds.service;

import com.zsc.newbuds.entity.ExchangeRecord;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author D
 */
public interface ExchangeRecordService {


    /**
     * 查詢所有兌換記錄
     * @return
     */
    List<ExchangeRecord> getExchangeRecordList();


    /**
     * 查詢用户兌換記錄
     * @param userId
     * @return
     */
    List<ExchangeRecord> getUserExchangeRecordList(Integer userId);
    /**
     * 增加用戶兌換記錄
     * @param goodsId
     * @param userId
     */
    void addExchangeRecord(Integer goodsId,Integer userId);

    /**
     * 提供快递号
     * @param exchangeId
     */
    void provideNo(Integer[] exchangeId);
}
